package com.cyz.test;

import java.sql.SQLException;

import org.junit.Ignore;
import org.junit.Test;

import com.cyz.dao.ShopcartDao;
import com.cyz.dao.impl.ShopcartDaoImpl;

public class Shopcart {
	@Ignore
	public void getShopcartByUseId() throws SQLException
	{
		ShopcartDao shopcartDao=new ShopcartDaoImpl();
		System.out.println(shopcartDao.getShopcartByUseId(1).get(0).getProduct().getProductName());
	}
	@Test
	public void deteleShopcart()
	{
		ShopcartDao shopcartDao=new ShopcartDaoImpl();
		shopcartDao.deteleShopcart("1", "double-entendre");
	}
}
